<!-- Data Tables -->
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>{:lang('Transaction value converted to source value')}</h5>
                </div>
                <div class="ibox-content">
                    <form class="form-horizontal m-t" action="{:url('purse/convert')}" method="post">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">{:lang('Username')}：</label>
                            <div class="col-sm-8">
                                <input minlength="2" type="text" class="form-control" value="{$user.username}" readonly="readonly">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">{:lang('Available transaction value')}：</label>
                            <div class="col-sm-8">
                                <input id="eth" type="text" readonly="true" class="form-control" name="transaction" value="{$info.transaction}" aria-required="true">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">{:lang('Converted quantity')}：</label>
                            <div class="col-sm-8">
                                <input id="btc" type="text" class="form-control" name="convert_num" value="" aria-required="true">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-3">
                                <button class="btn btn-primary" type="submit">{:lang('Submit')}</button>
                            </div>
                        </div>
                    </form>
                </div>

                <div class="ibox-content">
                    
                        <table id="table" data-toggle="gridview" class="table" data-url="{:url('admin/purse/getconvert')}" data-toolbar="#toolbar" data-show-columns="true" data-page-size="20" data-page-list="[10, 25, 50, All]" data-unique-id="id" data-pagination="true" data-side-pagination="client" data-search="true" data-click-to-select="false">
                        <thead>
                            <tr>
                                
                                <th data-width="50" data-field="convert_num" >{:lang('Use Transaction value')}</th>
                                <th data-width="80" data-field="convert_num_after" data-align="center">{:lang('Converted to Source value')}</th>
                                <th data-width="80" data-field="dt" data-align="center">{:lang('Date')}</th>
                                
                            </tr>
                        </thead>
                    </table>
                </div>
            </div>
        </div>

    </div>


</div>


<script type="text/javascript">
    function copyText() {
      var eth = document.getElementById("eth");
      eth.select(); 
      document.execCommand("Copy"); 
      alert("{:lang('Duplicate success')}");
    }
</script>  
